<%= form_for(@process_instance) do |f| %>
  <% if @process_instance.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@process_instance.errors.count, "error") %> prohibited this process_instance from being saved:</h2>

      <ul>
      <% @process_instance.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :process_define_id %><br>
    <%= f.text_field :process_define_id %>
  </div>
  <div class="field">
    <%= f.label :creator_id %><br>
    <%= f.text_field :creator_id %>
  </div>
  <div class="field">
    <%= f.label :start_at %><br>
    <%= f.datetime_select :start_at %>
  </div>
  <div class="field">
    <%= f.label :end_at %><br>
    <%= f.datetime_select :end_at %>
  </div>
  <div class="field">
    <%= f.label :status %><br>
    <%= f.text_field :status %>
  </div>
  <div class="field">
    <%= f.label :business_key %><br>
    <%= f.text_field :business_key %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
